//
// Created by 32827 on 2024/1/17.
//

#ifndef YZGD32_YZFDEF_H
#define YZGD32_YZFDEF_H
#include "yz_include_control.h"
///----GPIO
typedef uint32_t YZF_GPIO_POINTER;
typedef uint32_t  YZF_GPIO_PIN;
//----I2C
typedef uint32_t  YZF_I2C_POINTER;
//----UART
typedef uint32_t YZF_UART_POINTER;
typedef uint8_t YZF_UART_DATA;
enum YZF_UART_WORD_LENGTH{
    YZF_UART_LENGTH_8=TLS_UART_CHSIZE_8BIT,
    YZF_UART_LENGTH_9=TLS_UART_CHSIZE_7BIT
};
//----DMA
typedef uint32_t YZF_DMA_POINTER;
// typedef dma_channel_enum YZF_DMA_CHANNEL_POINTER;
enum YZF_DMA_PRIOR{
    YZF_DMA_LOW=0b00,
    YZF_DMA_MIDDLE=0b01,
    YZF_DMA_HIGH=0b10,
    YZF_DMA_MOST=0b11
};
// enum YZF_DMA_SIZE{
//     YZF_DMA_M_BYTE=DMA_MEMORY_WIDTH_8BIT,
//     YZF_DMA_M_HALF_WORD=DMA_MEMORY_WIDTH_16BIT,
//     YZF_DMA_M_WORD=DMA_MEMORY_WIDTH_32BIT,
//     YZF_DMA_P_BYTE=DMA_PERIPH_WIDTH_8BIT,
//     YZF_DMA_P_HALF_WORD=DMA_PERIPH_WIDTH_16BIT,
//     YZF_DMA_P_WORD=DMA_PERIPH_WIDTH_32BIT,
// };
typedef enum YZF_DMA_PRIOR YZF_DMA_PRIORITY;
// typedef enum YZF_DMA_SIZE YZF_DMA_SIZE;
//---TIM
typedef uint32_t YZF_TIM_POINTER;
#endif //YZGD32_YZFDEF_H
